home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / zmdm.zoo / decl.h < prev    next >
C/C++ Source or Header  |  1991-04-27  |  3KB  |  137 lines

  1.      /***********************************************\
  2.      *                        *
  3.      *  Decl.h - extern declarations for C libarary  *
  4.      *      must come after <stdio.h> is included    *
  5.     *                        *
  6.     *    Preprocessor symbol `MWC' should be        *
  7.     *    defined when using Mark Williams C        *
  8.     *                        *
  9.     *    Preprocessor symbol `MANX' should be       *
  10.     *    defined when using Manx Aztec C        *
  11.     *                        *
  12.     *    Preprocessor symbol `__GNUC__' should be   *
  13.     *    defined when using GNU C            *
  14.      *                        *
  15.     \***********************************************/
  16.  
  17. #ifndef DECL_H
  18.  
  19. #ifdef __GNUC__
  20. #include <types.h>
  21. #include <stddef.h>
  22. #include <stdlib.h>
  23. #include <stdio.h>
  24. #include <memory.h>
  25. #include <string.h>
  26. #include <unistd.h>
  27. #include <time.h>
  28.  
  29. #else /* __GNUC__ */
  30.  
  31. extern    FILE *fopen(), *freopen(), *fdopen();
  32. #if (!(MANX || MWC))
  33. #ifndef DLIBS
  34. extern    FILE *fopena(), *freopa();
  35. extern    FILE *fopenb(), *freopb();
  36. #endif /* DLIBS */
  37. #endif /* MANX || MWC */
  38.  
  39. #if MANX
  40. extern FILE *tmpfile();
  41. #endif
  42.  
  43. extern    char    *etoa();
  44. extern    char    *ftoa();
  45. #if (!(MWC || MANX))
  46. #ifndef DLIBS
  47. extern    char    *getpass();
  48. #endif
  49. #endif
  50.  
  51. #ifndef MANX
  52. extern    char    *index();
  53. extern    char    *rindex();
  54. #endif
  55.  
  56. extern    char    *mktemp();
  57. extern    char    *strcat();
  58. extern    char    *strcpy();
  59. extern    char    *strncat();
  60. extern    char    *strncpy();
  61. extern    char    *calloc(), *malloc(), *realloc();
  62. #if (MWC || MANX || DLIBS)
  63. extern char *getenv();
  64. #endif
  65.  
  66. #if (!(MWC || MANX))
  67. extern    char    *sbrk();
  68. #endif
  69. extern    char     *gets(), *fgets();
  70. #if (!(MWC || MANX))
  71. #ifndef DLIBS
  72. extern    char     *ttyname();
  73. #endif
  74. #endif
  75.  
  76. #if (MWC || MANX)
  77. extern  char    *lmalloc(), *lcalloc(), *lrealloc();
  78. #endif
  79.  
  80. extern    double    atan();
  81. extern    double    atof();
  82. extern    double    ceil();
  83. extern    double    cos();
  84. extern    double    exp();
  85. extern    double    fabs();
  86. extern    double    floor();
  87. extern    double    fmod();
  88. extern    double    log();
  89. extern    double    pow();
  90. extern    double    sin();
  91. extern    double    sinh();
  92. extern    double    sqrt();
  93. extern    double    tan();
  94. extern    double    tanh();
  95.  
  96. extern    int    strlen();
  97. extern    int    (*signal())();
  98.  
  99. extern    long     atol();
  100. extern    long     ftell();
  101. extern    long    getl();
  102.  
  103. #ifndef DLIBS
  104. extern    long     lseek(), tell();
  105. #endif
  106.  
  107. #if (MWC || MANX)
  108. extern char    *memchr(), *memcpy(), *memset();
  109. extern char    *strchr(), *strerror(), *strpbrk(), *strrchr();
  110. extern char    *strstr(), *strtok();
  111. extern double    log10();
  112. extern double    frexp();
  113. extern double    ldexp();
  114. extern double    modf();
  115. extern double    asin(), acos(), atan2(), cosh();
  116. #endif /* MWC || MANX */
  117.  
  118. #ifdef MANX
  119. extern char    *memmove(), *memccpy(), *lmemccpy(), *lmemcpy();
  120. extern char    *lmemmove(), *lmemchr(), *lmemset(), *strdup();
  121. extern char    *scdir(), *tmpnam(), *bsearch();
  122. extern long    labs();
  123. extern double    cotan();
  124.  
  125. /* BSD compitibility */
  126. #define index    strchr
  127. #define rindex    strrchr
  128.  
  129. #endif /* MANX */
  130.  
  131. #endif /* __GNUC__ */
  132.  
  133. #define DECL_H
  134. #endif
  135.  
  136. /* -eof- */
  137.